﻿<cfcomponent 
	displayname="public.service.helper.tagContent" 
	hint="CFContent Tag Operation Helper" 
	output="false">
	
	<cffunction name="init" access="public" returntype="public.service.helper.tagContent" hint="初始化对象">
		<cfreturn this />
	</cffunction>

	<cffunction name="contentType" access="public" returntype="void" hint="HTTP/1.1 RFC 2616">
		<cfargument name="type" type="string" required="yes" hint="HTTP/1.1 RFC 2616 Content-Type" />
		<cfargument name="reset" type="string" required="no" default="no" hint="yes: discards output that precedes call to cfcontent. no: preserves output that precedes call to cfcontent. In this case, all output is sent with the specified type." />

		<cfcontent type="#arguments.type#" reset="#arguments.reset#" />
	
	</cffunction>
	
	<cffunction name="contentWriteThrough" access="public" returntype="void" hint="向浏览器写入二进制流">
		<cfargument name="type" type="string" required="yes" hint="HTTP/1.1 RFC 2616 Content-Type" />
		<cfargument name="binaryStream" type="binary" required="yes" hint="二进制流" />
		<cfargument name="reset" type="string" required="no" default="no" hint="yes: discards output that precedes call to cfcontent. no: preserves output that precedes call to cfcontent. In this case, all output is sent with the specified type." />
		
		<cfcontent type="#arguments.type#" reset="#arguments.reset#" variable="#arguments.binaryStream#" />
		
	</cffunction>
	
</cfcomponent>